package com.barneyx.mshinfoplatform.mapper.admin;

import com.barneyx.mshinfoplatform.entity.admin.AreaAdminUserMapEntity;
import com.barneyx.mshinfoplatform.mapper.MshBaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

import java.io.Serializable;

public interface IAreaAdminUserMapEntityMapper extends MshBaseMapper<AreaAdminUserMapEntity> {
    @Delete("DELETE FROM `msh_infos`.`msh_admin_area_list` WHERE  `user_id`=#{adminuserId};")
    void deleteAdminAreaMapByAdminUserId(@Param("adminuserId") Serializable adminUserId);

    @Delete("DELETE FROM `msh_infos`.`msh_admin_area_list` WHERE  `user_id`=#{adminuserId} AND `area_id`=#{areaId} ;")
    void deleteAdminAreaMapByAdminUserIdAndAreaId(@Param("adminuserId") Serializable adminUserId, @Param("areaId") Serializable areaId);
//    void deleteAdminAreaMapByAdminUserIdAndAreaId(Long adminUserId, Long areaId);
}
